﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RN.ERP.Web.BasicService;

namespace RN.ERP.Web.UserControl
{
    public partial class UCExpertDB : System.Web.UI.UserControl
    {
        #region Params
        private string _dbCode;

        /// <summary>
        /// 库编号
        /// </summary>
        public string DBCode
        {
            get
            {
                return hidCode.Value;
            }
            set
            {
                _dbCode = value;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        public string Display { set; get; }

        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(_dbCode))
            {
                hidCode.Value = _dbCode;
                BasicServiceClient client = new BasicServiceClient();
                ////根据编号获取名称
                lblName.Text = client.GetExpertDBName(hidCode.Value);
            }
        }
    }
}